package CryptUtil

import (
	"EthanMS/commons/util/string"
	"crypto/des"
)

// V.151+ key: M@PleStoryMaPLe!
var key = StringUtil.StrToBytes("M@PleStoryMaPLe!M@PleSto")

func TripleDESEncrypt(data []byte) []byte {
	cipher, err := des.NewTripleDESCipher(key)
	if err != nil {
		panic(err)
	}
	ret := make([]byte, len(data))
	cipher.Encrypt(ret, data)
	return ret
}
